package com.gdwhomework.chapter08.work005;

import org.omg.CORBA.PUBLIC_MEMBER;

/**
 * @author 关道伟
 * @version 1.0
 */
public  class Factory {
    private static Horse horse = new Horse();
    public static Vehicles get_horse(){
        return horse;
    }
    public static Vehicles get_boat(){
        Boat boat = new Boat();
        return boat;
    }

    public static Vehicles get_Arilen(){
        return new Airline();
    }
}
